package fresher.java.finaltest.manager;

import java.util.LinkedList;
import java.util.List;

import fresher.java.finaltest.entity.Bee;
import fresher.java.finaltest.entity.Bees;
import fresher.java.finaltest.entity.Drone;
import fresher.java.finaltest.entity.Queen;
import fresher.java.finaltest.entity.Worker;

public class Manager {
	public static void main(String s) {
		Bees bees = new Bees();
		List<Bee> list = new LinkedList<>();
		list.add(new Worker());
		list.add(new Queen());
		list.add(new Drone());

		List<Bees> beesList = new LinkedList<>();
		// int type=(int) ((Math.random())*(list.size()-1));
		for (int i = 0; i < 10; i++) {
			int type = (int) ((Math.random()) * list.size());
			if (type == 1) {
				bees.setBeeName(" Bee Worker" + i);
				bees.setBeeType(list.get(0).name);
				bees.setBeeHeath(100);
				beesList.add(bees);
			}
			if (type == 2) {
				bees.setBeeName(" Bee Queen" + i);
				bees.setBeeType(list.get(1).name);
				bees.setBeeHeath(100);
				beesList.add(bees);
			}
			if (type == 3) {
				bees.setBeeName(" Bee Drone" + i);
				bees.setBeeType(list.get(2).name);
				bees.setBeeHeath(100);
				beesList.add(bees);
			}
		}
		System.out.println(beesList.toString());
	}
}
